<!DOCTYPE html>
<html>
    <head>
        <title>Home page</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">

        <link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
        <link rel="shortcut icon" href="img/favicon64.png" type="image/png">
        <link href="css/styles.css" type="text/css" rel="stylesheet">
        <link href="css/outcome.css" type="text/css" rel="stylesheet">
        
        <script type="text/javascript" src="vendor/jquery-2.1.1.min.js"></script>         
        <script type="text/javascript" src="js/check.js"></script>
    </head>
    <body>
        <header>
            <div class="container">
                <h1>
                    <a href="/" title="Tevazbez">
                        <i class="icon brand"></i>
                        <span>
                            Sak malé
                        </span>
                    </a>
                </h1>
            </div>
        </header>
        <div class="content container">
            <div class="tile wide">
                <h1>Report outcome</h1>
                <form>
                    <div class="form-table">
                        <div class="cell">
                            <label for="name">
                                Name
                            </label>
                            <input type="text" name="name" id="name" data-value="14" value="Bread">
                        </div>
                        <div class="cell">
                            <label for="cat">
                                Category
                            </label>
                            <input name="cat" id="cat" data-value="13" type="text" value="Food/First Needed Products">
                        </div>
                        <div class="cell small">
                            <label for="price">
                                Price
                            </label>
                            <input type="text" name="price" id="price" value="7.67">
                        </div>
                        <div class="cell small">
                            <label for="amount">
                                Amount
                            </label>
                            <input type="number" name="amount" min="1" id="amount" value="1">
                        </div>
                        <div class="cell small">
                            <label for="cost" class="help" title="Click the field if you paid less">
                                Cost
                            </label>
                            <input type="text" name="cost" id="cost" data-role="cost" value="7.67" disabled="disabled">
                        </div>
                        <div class="cell small big-screen">
                            <label>Add</label>
                            <button class="button inline small primary">+</button>
                        </div>
                        <div class="cell small-screen">
                            <button class="button primary">Add</button>
                        </div>
                        <div class="clear"></div>
                    </div>
                </form>
            </div>
            <div class="tile large">
                <h1>So, you bought</h1>
                <div class="report">
                    <table>
                        <tbody>
                            <tr>
                                <td>
                                    Beer "Maccabi"
                                </td>
                                <td>
                                    $1 x 3 btl.
                                </td>
                                <td>
                                    $3
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Vodka "Stoli"
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                                <td>
                                    $4.3
                                </td>
                            </tr>
                            <tr class="discount">
                                <td>
                                    Discount
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                                <td>
                                    $1
                                </td>
                            </tr>
                            <tr class="total">
                                <td>
                                    Total
                                </td>
                                <td>
                                    $7.3 - $1
                                </td>
                                <td class="help" title="Isn't it correct? Maybe you got a discount?">
                                    $6.3
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </div>
            <div class="tile small">
                <h1>Actions</h1>
                <a class="button primary" href="javascript:void(0)">Save</a>
                <a class="button" href="javascript:void(0)" data-target="#discount-modal" data-role="show-modal">Discount</a>
                <a class="button" href="javascript:void(0)">Draft</a>
            </div>
            <div class="clear"></div>
        </div>
        <footer class="footer">
            <div class="container">
                (c) Copyright 2015, Alex Kashcheyev
                <span class="license">
                    Visit 
                    <a href="https://code.google.com/p/sak-male-html/wiki/ThirdParty" title="ThirdParty" data-role="new-tab">
                        project wiki page
                    </a> 
                    to check licenses of 3rd party products that I use.
                </span>
            </div>
        </footer>

        <div class="modal-backdrop" data-role="nojs"></div>
        <div class="modal" data-role="nojs">
            <header>
                <h1>It's not rocket science</h1>
            </header>
            <div class="content">
                <p>
                    Javascript seems to be disabled in your browser. Please enable it and push the button below or refresh this page.
                </p>
                <p>
                    <button class="button">
                        Refresh
                    </button>
                </p>
            </div>
        </div>
        
        <div class="modal-backdrop" id="modal-backdrop" data-role="close-modal"></div>
        <div class="modal" data-role="modal" id="discount-modal">
            <header>
                <h1>You saved family money!</h1>
            </header>
            <div class="content">
                <p class="help" title="In $ or percents. Just put a % sign if you mean it.">
                    How much did you save?
                </p>
                <p>
                    <input type="text">
                </p>
                <p>
                    <button class="button primary inline">I am awesome!</button>
                    <button class="button inline" data-role="close-modal" data-target="#discount-modal">Nothing :(</button>
                </p>
            </div>
        </div>
        
        <script type="text/javascript" src="js/newtab.js"></script>
        <script type="text/javascript" src="js/modal.js"></script>
    </body>
</html>
